home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZBIOSTM.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
778b
|
29 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzbiostm │
│Return a time string in the form HH:MM:SS using the bios dword ptr in low │
│memory at 0x40:0x6C. │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
#include <jaz.h>
jzbiostm(fstr)
char *fstr;
{
long wclock;
unsigned int whour,wminute,wsecond,wremain;
wclock = MEML(0x40,0x6C); /* point to clock in low memory bios */
whour = wclock / 65543;
wremain = wclock % 65543;
wminute = wremain / 1092;
wremain %= 1092;
wsecond = wremain / 18;
sprintf(fstr,"%02d:%02d:%02d",whour,wminute,wsecond);
}